<html>
<head>
<style>
.ex1 {padding-top:2cm;}
.ex2 {padding:0.5cm 3cm;}
</style>
</head>

<body>
<div class="ex1">This is a div. This is a div. This is a div. This is a div. This is a div. This is a div. This is a div. This is a div. This is a div. This is a div. This is a div.</div>
</body>
</html>